//
// Created by root on 10/7/15.
//

#ifndef MYHTTPSERVER_SOCKET_THREAD_MAP_H
#define MYHTTPSERVER_SOCKET_THREAD_MAP_H

#include "uthash.h"
#include <pthread.h>

typedef struct _socket_thread_map{
    char threadid[50];
    char socketid[50];
    UT_hash_handle hh;
}socket_thread_map;

void add_socket_thread(socket_thread_map ** map,pthread_t pthreadT, int socketid);

void delete_socket_thread(socket_thread_map ** map,pthread_t pthreadT);

socket_thread_map * find_socket_thread(socket_thread_map ** map,pthread_t pthreadT);

#endif //MYHTTPSERVER_SOCKET_THREAD_MAP_H